package com.websocet.enums;

public enum ifElse {

    ONE(1, "/ONE"),
    TWO(2, "/TWO"),
    THREE(3, "/THREE");

    private Integer num;
    private String path;

    ifElse(int i, String s) {
        this.num = i;
        this.path = s;
    }

    private Integer getNum () {
        return num;
    }
    private String getPath() {
        return path;
    }
    public static String getString(int num) {
        for (ifElse item :
                ifElse.values()){
            if (item.getNum() == num ) {
                return item.path;
            }
        }
        return null;
    }
}
